package com.spring.beans.factory.support;

import com.spring.BeanDefinition;
import com.spring.beans.BeansException;

/**
 * @Author: Asuka
 * @Description:
 * @create: 2025-04-13 19:53
 */

//BeanDefinition注册表接口
public interface BeanDefinitionRegistry {

    //注册bean
    void registerBeanDefinition(String beanName, BeanDefinition beanDefinition);

    //根据名字查找
    BeanDefinition getBeanDefinition(String beanName) throws BeansException;

    /*
    * 是否包含
    * @param beanName
    * @return
    * */
    boolean containsBeanDefinition(String beanName);

    //返回所有bean名称
    String[] getBeanDefinitionNames();

}
